<?php
/*
 * @package Joomla 1.5
 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 *
 * @component Phoca Guestbook
 * @copyright Copyright (C) Jan Pavelka www.phoca.cz
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport('joomla.application.component.controller');

class PhocaGuestbookController extends JController
{
    function display()
    {
		// Set a default view if none exists
		if ( ! JRequest::getCmd( 'view' ) )
		{
			JRequest::setVar('view', 'phocaguestbook' );
		}
		parent::display();
    }
}
?>